#include <stdio.h>

int X(int n) {
     if(n<=3) return 1;
     else return X(n-2)+X(n-4)+1;
}

int main() {
    int result = X(8);
    printf("X(8) = %d\n", result);
    printf("X(X(8)) = %d\n", X(result));

    return 0;
}
